<?php

/**
 * Description of problem
 *
 * @author srkrishnan
 */

/**

 * @property CI_Loader $load

 * @property CI_Form_validation $form_validation

 * @property CI_Input $input

 * @property CI_Email $email

 * @property CI_DB_active_record $db

 * @property CI_DB_forge $dbforge
 * 
 * @property CI_DB_driver $result

 */
class Problem extends CI_Model{
    
    function Problem(){
        parent::__construct();
        $this->load->database();
    }
    
    function getproblem($problemid){
        $result=$this->db->query("select * from problem where problemid=".$problemid);
        
        if($result->num_rows()==0)
        {
            return false;
        }
        
        $problemresult=$result->result();
        
        $problem=$problemresult[0]->problem;
        return $problem;
        
    }
}

?>
